<script setup>
import { ref,defineProps,defineEmits } from 'vue'


const emit = defineEmits(['receivePCount'])
const childTransmitParentProperty = () => {
    emit('receivePCount',70)
}
</script>

<template>
  <div>
    <h2>案例1.2：子组件向父组件传值（或者叫：子组件调用父组件方法）,修改父组件属性count</h2>
    <el-button @click="childTransmitParentProperty()">子组件内调用父组件方法修改count值</el-button>
  </div>
</template>

<style scoped>

</style>